/**
 * 
 */
package com.example.obtaingaode.util;

import android.os.Environment;

import com.example.obtaingaode.bean.UserInfomation;

/**
 * 常用变量类
 *
 * @author yidong.tang
 * 
 *         2017-5-12
 */
public class Constants {

//	public final static String BASE_URL = "http://dev.moutum.com:8080/gisproject/appCommonMethod.action";
	public static final String PROJECT_NAME="/gisproject/appCommonMethod.action";
	public static final String HOST="http://dev.moutum.com:8080";
	public final static String BASE_URL = HOST+PROJECT_NAME;

	public final static String URL_LOGIN = "USERLOGIN";
	public final static String URL_SAVE = "SAVEDEVIDE";

	public final static String USER_NO = "userNo";
	public final static String USER_ID = "userId";
	public final static String USER_NAME = "userNAME";

	// 应用调试开关
	public static final boolean DEBUG = true;
	public static String ROOT_DIR = Environment.getExternalStorageDirectory()
			.getAbsolutePath();
	/** 设备类型 */
	public static String DEVICE_TYPE = "android";

	/** 纬度 */
	public static final String LATITUDE = "latitude";
	/** 经度 */
	public static final String LONGITUDE = "longitude";
	/** 区间 */
	public static final String QUJIAN = "qujian";
	/** 杆号 */
	public static final String GANHAO = "gan";
	/** 请输入线别 */
	public static final String LINE = "line";
	/** 请输入隧道/股道 */
	public static final String GUDAO = "gudao";

	public static String getBaseUrl(){
		return ConfigInfomation.getBaseUrl(HOST)+PROJECT_NAME;
	}

}
